package com.obas.menus {
	import com.ease.core.components.menus.AbstractMenuProvider;
	import com.obas.constants.StringConstants;
	import com.obas.utils.ResourceUtil;

	import mx.events.MenuEvent;

	public class FileMenuProvider extends AbstractMenuProvider {

		public function FileMenuProvider() {
			super();
		}

		override public function appendMenuItem(root:Object):void {
			var menuItems:Object={label: ResourceUtil.getString(StringConstants.MAIN_MENU_FILE), keyEquivalent: "F", altKey: true,
					children: [{label: "New", icon: "iconDocumentClass", listener: onMenuItemClick},
						{label: "Open", icon: "iconDocumentClass", listener: onMenuItemClick},
						{type: "separator"},
						{label: "Close", listener: onMenuItemClick},
						{type: "separator"},
						{label: "Save", listener: onMenuItemClick},
						{label: "Save as...", listener: onMenuItemClick},
						{type: "separator"},
						{label: "Import...", listener: onMenuItemClick},
						{label: "Export...", listener: onMenuItemClick},
						{type: "separator"},
						{label: "Exit", listener: onMenuItemClick}
					]
				};

			root.children.push(menuItems);
		}
	}
}